package com.jule.goldfast.base.utils;

public class CodeConfig {
    public static String errorCode(Integer args){
        switch (args){
            case 0:
                return "成功";
            case 5000:
                return "服务器内部错误";
            case 5001:
                return "参数错误";
            case 5002:
                return "数据库插入失败";
            case 5003:
                return "数据库更新失败";
            case 5004:
                return "数据库删除失败";
            case 5005:
                return "代码系统错误";
            case 5101:
                return "用户不存在";
            case 5102:
                return "添加用户失败";
            case 5103:
                return "没有足够金额";
            case 5104:
                return "用户验证失败";
            case 5105:
                return "修改用户经验失败";
            case 5106:
                return "禁止操作";
            case 5107:
                return "用户被踢";
            case 5301:
                return "正在游戏中";
            case 5302:
                return "游戏ID不符";
            case 5303:
                return "退出游戏失败";
            case 5401:
                return "行为不在允许的范围";
        }
        return null;
    }
}
